package com.hghivln.erpwarehouse.system.common.lang;

import com.hghivln.erpwarehouse.system.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 区分私密和非私密信息，以下对非私密信息的封装
 * 为了登录成功之后返回的一个用户信息的载体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActiverUser implements Serializable {

    private static final long serialVersionUID = 1L;

    private User user;

    private List<String> roles;

    private List<String> permission;
}
